package io.framework.modules.hpinfo.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import io.framework.common.service.impl.CrudServiceImpl;
import io.framework.modules.hpinfo.dao.VTHpglHpspqyhjxzDao;
import io.framework.modules.hpinfo.dto.VTHpglHpspqyhjxzDTO;
import io.framework.modules.hpinfo.entity.VTHpglHpspqyhjxzEntity;
import io.framework.modules.hpinfo.service.VTHpglHpspqyhjxzService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * 环境影响评价管理-环评审批区域环境现状
 *
 * @author Gujq email
 * @since 1.0.0 2020-03-19
 */
@Service
public class VTHpglHpspqyhjxzServiceImpl extends CrudServiceImpl<VTHpglHpspqyhjxzDao, VTHpglHpspqyhjxzEntity, VTHpglHpspqyhjxzDTO> implements VTHpglHpspqyhjxzService {

    @Override
    public QueryWrapper<VTHpglHpspqyhjxzEntity> getWrapper(Map<String, Object> params){
        String id = (String)params.get("id");

        QueryWrapper<VTHpglHpspqyhjxzEntity> wrapper = new QueryWrapper<>();
        wrapper.eq(StringUtils.isNotBlank(id), "id", id);

        return wrapper;
    }


}